<?php

namespace app\service;

use library\youyin;

class YouYinService extends Base
{

    //当前分机列表
    public function dn_list($page = 0,$limit = 10)
    {
        $pageNow = $page;
        $pageSize = $limit;
        return (new youyin())->getExtension($pageNow,$pageSize);
    }



    //解绑
    public function unbind($dn)
    {
        $res = (new youyin())->unbind($dn);
        return apiSuccess($res);
    }



    //更新语音提示
    public function update_voice($content = '欢迎使用云动挪车小程序')
    {
        return (new youyin())->uploadText($content);
    }


}